#include"../source/tcp_server.hpp"

int main()
{
    

    for (int i = 0; i < 10; i++) {
        Socket sock;
        sock.CreateClient("127.0.0.1",8989);
        std::string str = "hello bitejiuyeke!";
        ssize_t size = sock.Send(str.c_str(), str.size());
        LOG(LogLevel::DEBUG)<<"size :" <<size;
        char buf[1024] = {0};
        sock.Recv(buf, 1023);
        LOG(LogLevel::DEBUG)<<buf;
        sleep(1);
    }

   // while(1);

    return 0;
}